﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using LiteBlog.IoC;
using LiteBlog.Common.Components;
using LiteBlog.Repositories.Common;

namespace LiteBlog.Repositories.Tests
{
    [TestClass]
    public class AssemblySetup
    {
        internal static readonly string DataPath = @"C:\";
        [AssemblyInitialize]
        public static void Init(TestContext context)
        {
            IoCContainer.BuildContainer(ContainerType.XmlLayerTests);
            var dataContext = IoCContainer.Resolve<IDataContext>();
            dataContext.DataPath = DataPath;
            DateTimeHelper.SetTimezone("India Standard Time");
        }
    }
}
